import instance from '@/utils/request'
import { getToken } from "@/utils/auth";
//获取登录信息
export function loginApi(data) {
  return instance({
    url: '/sys/login',
    method: 'post',
    data
  })
}

//获取用户基本资料
export function getuserInfoApi() {
  return instance({
    url: '/sys/profile',
    method: 'POST',
  })
}

// export function logout() {
//   return instance({
//     url: '/vue-admin-template/user/logout',
//     method: 'post'
//   })
// }
